package com.csaba.connector.otp.model;

import com.csaba.connector.model.Customer;

public class OTPCustomer extends Customer
{
	private static final long serialVersionUID = -1514304242008580649L;

	private boolean smsAuthentication = false;

	public OTPCustomer( final Customer customer )
	{
		super();

		//set bank to OTP
		setBank(OTPBank.getInstance());

		//copy rest of the values
		setId(customer.getId());
		setLoginId(customer.getLoginId());
		setName(customer.getName());
		setPassword(customer.getPassword());

		copyRemoteProperty(customer);
	}

	public void setSmsAuthentication( final boolean smsAuthentication )
	{
		this.smsAuthentication = smsAuthentication;
	}

	public boolean isSmsAuthentication()
	{
		return smsAuthentication;
	}
}
